* progmodes/cc-fonts.el (c-annotation-face): Use defface.
authorChong Yidong <cyd@gnu.org>
Tue, 6 Dec 2011 02:22:48 +0000 (10:22 +0800)
committerChong Yidong <cyd@gnu.org>
Tue, 6 Dec 2011 02:22:48 +0000 (10:22 +0800)
lisp/ChangeLog
lisp/progmodes/cc-fonts.el

index c95eb50d46c3f5d40b733ab13b42874c1edfb444..d84401cc83f28d9ceed0c32a46f754c392f04c39 100644 (file)
@@ -1,3 +1,7 @@
+2011-12-06  Chong Yidong  <cyd@gnu.org>
+
+       * progmodes/cc-fonts.el (c-annotation-face): Use defface.
+
 2011-12-06  Juanma Barranquero  <lekktu@gmail.com>
 
        * textmodes/table.el (table-shorten-cell): Fix typo.
index a31de35f3bac558504aad8c7623feea385ee79b5..ac4d1bf9e57f851b9504f5964299078122b35dde 100644 (file)
         (unless (face-property-instance oldface 'reverse)
           (invert-face newface)))))
 
-(defvar c-annotation-face (make-face 'c-annotation-face)
-  "Face used to highlight annotations in java-mode and other modes that may wish to use it.")
-(set-face-foreground 'c-annotation-face "blue")
+(defvar c-annotation-face 'c-annotation-face)
+
+(defface c-annotation-face
+  '((default :inherit font-lock-constant-face))
+  "Face for highlighting annotations in Java mode and similar modes."
+  :version "24.1"
+  :group 'c)
 
 (eval-and-compile
   ;; We need the following definitions during compilation since they're